#include "CAdd.h"
#include <android/log.h>
#include <stdio.h>
#include <stdlib.h>
union B_F
{
  char b[4];
  float f;
} bf;
CAdd::CAdd(){ 
}
CAdd::~CAdd(){ 
}
float CAdd::add(float x, float y){
	__android_log_print(ANDROID_LOG_INFO, "include","floatsize=%d",sizeof(float));
		return x/y;
}

void CAdd::copy(char *c){
	//__android_log_print(ANDROID_LOG_INFO, "include","floatsize=%d",sizeof(float));
	    float p=0.01;
	    memcpy(c,&p,4);
//	    bf.f=0.01;
//	    __android_log_print(ANDROID_LOG_INFO, "include","x=%x",bf.b[0]);
//	    __android_log_print(ANDROID_LOG_INFO, "include","x=%x",bf.b[1]);
//	    __android_log_print(ANDROID_LOG_INFO, "include","x=%x",bf.b[2]);
//	    __android_log_print(ANDROID_LOG_INFO, "include","x=%x",bf.b[3]);
//	    c[3]=bf.b[0];
//	    c[2]=bf.b[1];
//	    c[1]=bf.b[2];
//	    c[0]=bf.b[3];
		return ;
}
